package com.lzs.bootsafety.common.util.easyexcel.enums;

public enum GenderEnum {
    MALE("0","男"),FEMALE("1","女"),UNKNOWN("2","未知");
    private String label;
    private String value;

    GenderEnum(String label, String value) {
        this.label = label;
        this.value = value;
    }
    public String getLabel(){
        return label;
    }
    public String getValue(){
        return value;
    }
    public static GenderEnum  of(String param){
        for (GenderEnum temp:GenderEnum.values()){
            if (param.equals(temp.getLabel()) || param.equals(temp.getValue())){
                return temp;
            }
        }
        return null;
    }
}
